package com.evon.yardmanagement.ui.dto;

import java.util.Set;

import org.dozer.Mapping;

import com.evon.yardmanagement.model.YardMapping;

/**
 * DTO class for passing the yard information to the ui.
 * @author vgaurav
 *
 */
public class YardDTO {
	
	@Override
	public String toString() {
		return name;
	}

	private int id;
	
	private String name;
	
	private String address;

    private String city;
    
    private String phone;
    
    private String description;
    
    private String yardType;
    
    private boolean isNew;
    
    @Mapping("isActive")
    public boolean isActive;
    
   // @Mapping("yardMapping")
    //private YardMapping yardMapping;
	 
	

//	public YardMapping getYardMapping() {
//		return yardMapping;
//	}
//
//	public void setYardMapping(YardMapping yardMapping) {
//		this.yardMapping = yardMapping;
//	}

    
    @Mapping("sections")
    public Set<SectionDTO> sections;
    

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getYardType() {
		return yardType;
	}

	public void setYardType(String yardType) {
		this.yardType = yardType;
	}

	public boolean isNew() {
		return isNew;
	}

	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public Set<SectionDTO> getSections() {
		return sections;
	}

	public void setSections(Set<SectionDTO> sections) {
		this.sections = sections;
	}

	    
    
	
}
